package com.ask.utils;

//import com.alibaba.dubbo.common.utils.ConcurrentHashSet;

/**
 * 常量类
 * 
 * @author lyhcc
 * @version 2017/3/17
 */
public class CommonConstants {

	public static final String KEY_MD5 = "LCVW";

	// 百度相关搜索获取url
	public static final String SEARCH_URL = "http://www.baidu.com.cn/s?wd=";

	// 百度相关搜索分割符
	public static final String SEARCH_SPLIT_WORD = "</a></th>";

	// 百度相关搜索分割符
	public static final String RELATE_SPLIT_WORD = "<div class=\"tt\">相关搜索</div>";

	// C端请求超时时间60s
	public static final Integer TIMEOUT = 60;

	// 内部用户token在cookie中的name
	public static final String INNER_USER_COOKIE_NAME = "INNER_USER_TOKEN";

	// 用户token超时时间30分钟，1800s
	public static final int INNER_TOKEN_TIMEOUT = 1800;

	// news用户token在cookie中的name
	public static final String OUT_USER_COOKIE_NAME = "OUT_USER_TOKEN";

	// news用户token超时时间半小时小时，7200s
	public static final int OUT_TOKEN_TIMEOUT = 7200;

	// 用户token超时时间30天，30*24*60*60
	public static final int APP_TOKEN_TIMEOUT = 30 * 24 * 60 * 60;

	// 一天时间毫秒数
	public static final long ONE_DAY_MILLS = 24l * 60 * 60 * 1000;

	// 一小时时间毫秒数
	public static final long ONE_HOUR_MILLS = 60l * 60 * 1000;

	// 主包名
	public static final String MY_PACKAGE_NAME = "com.example.linngchuang.lcnews";

	// 微信的access_token(接口调用凭证)
	public static final String WEIXIN_ACCESS_TOKEN_KEY = "WEIXIN_ACCESS_TOKEN";

	// 微信的jsapi_ticket(公众号用于调用微信JS接口的临时票据)
	public static final String WEIXIN_JSAPI_TICKET_KEY = "WEIXIN_JSAPI_TICKET";

	// ios设备信息前缀
	public static final String DEVICE_IOS_PREFFIX = "iOS";

	// android设备信息前缀
	public static final String DEVICE_ANDROID_PREFFIX = "Android";

	// 敏感词配置key
	public static final String SENSITIVE_TYPE = "sensitive";

	// 抢答时间设置key
	public static final String ANSWER_TIME = "answertime";

	// 问题长度设置key
	public static final String CONTENT_LEN = "contentlen";

	// 答案长度设置key
	public static final String ANSWER_LEN = "answerlen";

	// 提示长度设置key
	public static final String HINT_LEN = "hintlen";

	// 开宝箱时间间隔设置key
	public static final String OPENBOX_INTERVAL = "openbox_interval";

	// 用户提问积分排名总榜key
	public static final String QUIZ_RANK_TOTAL = "quizrank_total";

	// 用户提问积分排名总榜key
	public static final String ANSWER_RANK_TOTAL = "answerrank_total";

	// 用户提问积分排名日榜key
	public static final String QUIZ_RANK_DAY = "quizrank_day";

	// 用户提问积分排名日榜key
	public static final String ANSWER_RANK_DAY = "answerrank_day";

	// 土豪积分排名总榜key
	public static final String GRABED_RANK_TOTAL = "grabedrank_total";

	// 用户提问积分排名总榜key
	public static final String GRAB_RANK_TOTAL = "grabrank_total";

	// 土豪积分排名日榜key
	public static final String GRABED_RANK_DAY = "grabedrank_day";

	// 用户提问积分排名日榜key
	public static final String GRAB_RANK_DAY = "grabtrank_day";

	// 正常登录
	public static final String LOGIN_SUCCESS = "0";
	// 未绑定手机号码
	public static final String LOGIN_NO_BIND = "1";
	// 用户不存在
	public static final String LOGIN_NO_USER = "2";

	// 验证码类型：手机登陆
	public static final String VERIFYCODE_TYPE_PHONE_LOGIN = "0";

	// 验证码类型：手机注册
	public static final String VERIFYCODE_TYPE_PHONE_REGISTER = "1";

	// 验证码类型：第三方绑定
	public static final String VERIFYCODE_TYPE_THIRD_BIND = "2";

	// 验证码类型：第三方注册
	public static final String VERIFYCODE_TYPE_THIRD_REGISTER = "3";

	// 验证码类型：修改密码
	public static final String VERIFYCODE_TYPE_MODIFY_PASSWD = "4";

	// 拜师奖励1元
	public static final float MASTER_REWARD = 1;

	// 红包被抢推送title
	public static final String TITLE_FIRST_REDBAG = "有人抢你红包了！";

	// 红包被抢推送body前缀
	public static final String BODY_FIRST_REDBAG_SUFFIX = "开始有人答对了你的问题：";

	// 红包被抢推送title
	public static final String TITLE_LAST_REDBAG = "你的红包被抢完了！";

	// 红包被抢推送body前缀
	public static final String BODY_LAST_REDBAG_SUFFIX = "你的问题被答完了：";

	// 即将推送的news
	//public static ConcurrentHashSet<String> pushIds = new ConcurrentHashSet<String>();

	// 头像裁剪后缀
	public static final String HEADPIC_SUFFIX = "?imageView2/1/w/100/h/100/q/75|imageslim";

}
